# config.py
import multiprocessing

debug = True
loglevel = 'debug'
bind = "0.0.0.0:5000"
# pidfile = "log/gunicorn.pid"

# 设置守护进程【关闭连接时，程序仍在运行】
# daemon = True
# 设置超时时间120s，默认为30s。按自己的需求进行设置
timeout = 120

# 设置访问日志和错误信息日志路径
accesslog = './logs/acess.log'
errorlog = './logs/error.log'

# print("cpu count: ", multiprocessing.cpu_count(), flush=True)

# 启动的进程数
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'eventlet'
# x_forwarded_for_header = 'X-FORWARDED-FOR'
